package chapter02;

public class User {

  private String username;
  private String password;
  private String authority;

  // create constructors

public User(String username, String password, String authority) {
    this.username = username;
    this.password = password;
    this.authority = authority;
}

public User(){}

public User(String username,String password){
    this.username = username;
    this.password = password;
}

// create User's get set method

@Override
public String toString() {
    return "User [authority=" + authority + ", password=" + password + ", username=" + username + "]";
}


public String getUsername() {
    return username;
}
public void setUsername(String username) {
    this.username = username;
}
public String getPassword() {
    return password;
}
public void setPassword(String password) {
    this.password = password;
}
public String getAuthority() {
    return authority;
}
public void setAuthority(String authority) {
    this.authority = authority;
}

  
    
}
